<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1" />
        <title>日志管理</title>
        <% include("/common/common_css_js.html"){} %>
    </head>
    <body>
        <div style="padding-bottom: 5px;">
            <div id="queryForm" class="uc-toolbaroverflow" _borderStyle="border-top:0;">

                <span>操作人:</span><input id="keyCreateUserId" name="keyCreateUserId" class="mini-combobox" style="width:300px;" textField="name" valueField="id" emptyText="请选择..."
                                        required="false" allowInput="false" showNullItem="true" nullItemText="请选择..." requiredErrorText="没有选择操作人" />

                <span>操作日期:</span>
                <input id="keyStartDate" name="keyStartDate" class="mini-datepicker" style="width:200px;" nullValue="null"
                       format="yyyy-MM-dd" showTime="true" showOkButton="true" showClearButton="false"
                       required="false" />
                --
                <input id="keyEndDate" name="keyEndDate" class="mini-datepicker" style="width:200px;" nullValue="null"
                       format="yyyy-MM-dd" showTime="true" showOkButton="true" showClearButton="false"
                       required="false" />

                <span class="separator"></span>
                <a class="mini-button" iconCls="icon-search" onclick="search()">查询</a>


            </div>
        </div>

        <div class = "mini-fit">
            <div id="datagrid1" class="mini-datagrid"
                 style="width: 100%; height: 100%;"
                 url="${base}/pages/system_maintain/sys_log/query" idField="id"
                 showPager="true" pageSize="20" sizeList="[10,20,30,50,100]"
                 allowResize="true"
                 allowCellWrap="true">
                <div property="columns">
                    <div field="tableName" width="140" headerAlign="center" align="center" allowSort="true">表名称</div>
                    <div field="pojoName" width="100" headerAlign="center" align="center" allowSort="true">实体类名称</div>
                    <div field="operTitle" width="140" headerAlign="center" align="center" allowSort="true">操作主题</div>
                    <div field="backupLogMsgInfo" width="270" headerAlign="center" align="left">数据变动日志</div>
                    <div field="createTime" width="100" headerAlign="center" align="center" allowSort="true" dateFormat="yyyy-MM-dd H:mm:ss" renderer="ondate2Renderer">记录创建时间</div>
                    <div field="createUserName" width="140" headerAlign="center" align="center" allowSort="true">记录添加人</div>
                </div>
            </div>
        </div>
        <script type="text/javascript">
            mini.parse();
            let grid = mini.get("datagrid1");

            $(function () {

                let userJsonData = commonRenderDropList("sysUser");
                mini.get("keyCreateUserId").load(userJsonData);

                // 加载列表数据
                grid.load();
            });

            function search() {
                let form = new mini.Form("#queryForm");
                let data = form.getData(true);
                grid.load(data);
            }

        </script>
    </body>
</html>